package cn.wolfcode.feign;

import cn.wolfcode.common.web.Result;
import cn.wolfcode.domain.PayResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("seckill-service")
public interface SeckillFeignApi {

    /**
     * 支付成功后进行订单状态修改以及支付日志记录
     * @return
     */
    @PostMapping("/orderPay/changeOrderStateAndPayLog")
    Result<?> changeOrderStateAndPayLog(@RequestBody PayResult payResult);
}
